package com.suning.app.snpaasadmin.pojo;

import java.util.ArrayList;
import java.util.List;

public class AppTemplateExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public AppTemplateExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andTemNameIsNull() {
            addCriterion("tem_name is null");
            return (Criteria) this;
        }

        public Criteria andTemNameIsNotNull() {
            addCriterion("tem_name is not null");
            return (Criteria) this;
        }

        public Criteria andTemNameEqualTo(String value) {
            addCriterion("tem_name =", value, "temName");
            return (Criteria) this;
        }

        public Criteria andTemNameNotEqualTo(String value) {
            addCriterion("tem_name <>", value, "temName");
            return (Criteria) this;
        }

        public Criteria andTemNameGreaterThan(String value) {
            addCriterion("tem_name >", value, "temName");
            return (Criteria) this;
        }

        public Criteria andTemNameGreaterThanOrEqualTo(String value) {
            addCriterion("tem_name >=", value, "temName");
            return (Criteria) this;
        }

        public Criteria andTemNameLessThan(String value) {
            addCriterion("tem_name <", value, "temName");
            return (Criteria) this;
        }

        public Criteria andTemNameLessThanOrEqualTo(String value) {
            addCriterion("tem_name <=", value, "temName");
            return (Criteria) this;
        }

        public Criteria andTemNameLike(String value) {
            addCriterion("tem_name like", value, "temName");
            return (Criteria) this;
        }

        public Criteria andTemNameNotLike(String value) {
            addCriterion("tem_name not like", value, "temName");
            return (Criteria) this;
        }

        public Criteria andTemNameIn(List<String> values) {
            addCriterion("tem_name in", values, "temName");
            return (Criteria) this;
        }

        public Criteria andTemNameNotIn(List<String> values) {
            addCriterion("tem_name not in", values, "temName");
            return (Criteria) this;
        }

        public Criteria andTemNameBetween(String value1, String value2) {
            addCriterion("tem_name between", value1, value2, "temName");
            return (Criteria) this;
        }

        public Criteria andTemNameNotBetween(String value1, String value2) {
            addCriterion("tem_name not between", value1, value2, "temName");
            return (Criteria) this;
        }

        public Criteria andSdkIdIsNull() {
            addCriterion("sdk_id is null");
            return (Criteria) this;
        }

        public Criteria andSdkIdIsNotNull() {
            addCriterion("sdk_id is not null");
            return (Criteria) this;
        }

        public Criteria andSdkIdEqualTo(Integer value) {
            addCriterion("sdk_id =", value, "sdkId");
            return (Criteria) this;
        }

        public Criteria andSdkIdNotEqualTo(Integer value) {
            addCriterion("sdk_id <>", value, "sdkId");
            return (Criteria) this;
        }

        public Criteria andSdkIdGreaterThan(Integer value) {
            addCriterion("sdk_id >", value, "sdkId");
            return (Criteria) this;
        }

        public Criteria andSdkIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("sdk_id >=", value, "sdkId");
            return (Criteria) this;
        }

        public Criteria andSdkIdLessThan(Integer value) {
            addCriterion("sdk_id <", value, "sdkId");
            return (Criteria) this;
        }

        public Criteria andSdkIdLessThanOrEqualTo(Integer value) {
            addCriterion("sdk_id <=", value, "sdkId");
            return (Criteria) this;
        }

        public Criteria andSdkIdIn(List<Integer> values) {
            addCriterion("sdk_id in", values, "sdkId");
            return (Criteria) this;
        }

        public Criteria andSdkIdNotIn(List<Integer> values) {
            addCriterion("sdk_id not in", values, "sdkId");
            return (Criteria) this;
        }

        public Criteria andSdkIdBetween(Integer value1, Integer value2) {
            addCriterion("sdk_id between", value1, value2, "sdkId");
            return (Criteria) this;
        }

        public Criteria andSdkIdNotBetween(Integer value1, Integer value2) {
            addCriterion("sdk_id not between", value1, value2, "sdkId");
            return (Criteria) this;
        }

        public Criteria andRuntimeIdIsNull() {
            addCriterion("runtime_id is null");
            return (Criteria) this;
        }

        public Criteria andRuntimeIdIsNotNull() {
            addCriterion("runtime_id is not null");
            return (Criteria) this;
        }

        public Criteria andRuntimeIdEqualTo(Integer value) {
            addCriterion("runtime_id =", value, "runtimeId");
            return (Criteria) this;
        }

        public Criteria andRuntimeIdNotEqualTo(Integer value) {
            addCriterion("runtime_id <>", value, "runtimeId");
            return (Criteria) this;
        }

        public Criteria andRuntimeIdGreaterThan(Integer value) {
            addCriterion("runtime_id >", value, "runtimeId");
            return (Criteria) this;
        }

        public Criteria andRuntimeIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("runtime_id >=", value, "runtimeId");
            return (Criteria) this;
        }

        public Criteria andRuntimeIdLessThan(Integer value) {
            addCriterion("runtime_id <", value, "runtimeId");
            return (Criteria) this;
        }

        public Criteria andRuntimeIdLessThanOrEqualTo(Integer value) {
            addCriterion("runtime_id <=", value, "runtimeId");
            return (Criteria) this;
        }

        public Criteria andRuntimeIdIn(List<Integer> values) {
            addCriterion("runtime_id in", values, "runtimeId");
            return (Criteria) this;
        }

        public Criteria andRuntimeIdNotIn(List<Integer> values) {
            addCriterion("runtime_id not in", values, "runtimeId");
            return (Criteria) this;
        }

        public Criteria andRuntimeIdBetween(Integer value1, Integer value2) {
            addCriterion("runtime_id between", value1, value2, "runtimeId");
            return (Criteria) this;
        }

        public Criteria andRuntimeIdNotBetween(Integer value1, Integer value2) {
            addCriterion("runtime_id not between", value1, value2, "runtimeId");
            return (Criteria) this;
        }

        public Criteria andDomainIsNull() {
            addCriterion("domain is null");
            return (Criteria) this;
        }

        public Criteria andDomainIsNotNull() {
            addCriterion("domain is not null");
            return (Criteria) this;
        }

        public Criteria andDomainEqualTo(String value) {
            addCriterion("domain =", value, "domain");
            return (Criteria) this;
        }

        public Criteria andDomainNotEqualTo(String value) {
            addCriterion("domain <>", value, "domain");
            return (Criteria) this;
        }

        public Criteria andDomainGreaterThan(String value) {
            addCriterion("domain >", value, "domain");
            return (Criteria) this;
        }

        public Criteria andDomainGreaterThanOrEqualTo(String value) {
            addCriterion("domain >=", value, "domain");
            return (Criteria) this;
        }

        public Criteria andDomainLessThan(String value) {
            addCriterion("domain <", value, "domain");
            return (Criteria) this;
        }

        public Criteria andDomainLessThanOrEqualTo(String value) {
            addCriterion("domain <=", value, "domain");
            return (Criteria) this;
        }

        public Criteria andDomainLike(String value) {
            addCriterion("domain like", value, "domain");
            return (Criteria) this;
        }

        public Criteria andDomainNotLike(String value) {
            addCriterion("domain not like", value, "domain");
            return (Criteria) this;
        }

        public Criteria andDomainIn(List<String> values) {
            addCriterion("domain in", values, "domain");
            return (Criteria) this;
        }

        public Criteria andDomainNotIn(List<String> values) {
            addCriterion("domain not in", values, "domain");
            return (Criteria) this;
        }

        public Criteria andDomainBetween(String value1, String value2) {
            addCriterion("domain between", value1, value2, "domain");
            return (Criteria) this;
        }

        public Criteria andDomainNotBetween(String value1, String value2) {
            addCriterion("domain not between", value1, value2, "domain");
            return (Criteria) this;
        }

        public Criteria andMemoryIsNull() {
            addCriterion("memory is null");
            return (Criteria) this;
        }

        public Criteria andMemoryIsNotNull() {
            addCriterion("memory is not null");
            return (Criteria) this;
        }

        public Criteria andMemoryEqualTo(Integer value) {
            addCriterion("memory =", value, "memory");
            return (Criteria) this;
        }

        public Criteria andMemoryNotEqualTo(Integer value) {
            addCriterion("memory <>", value, "memory");
            return (Criteria) this;
        }

        public Criteria andMemoryGreaterThan(Integer value) {
            addCriterion("memory >", value, "memory");
            return (Criteria) this;
        }

        public Criteria andMemoryGreaterThanOrEqualTo(Integer value) {
            addCriterion("memory >=", value, "memory");
            return (Criteria) this;
        }

        public Criteria andMemoryLessThan(Integer value) {
            addCriterion("memory <", value, "memory");
            return (Criteria) this;
        }

        public Criteria andMemoryLessThanOrEqualTo(Integer value) {
            addCriterion("memory <=", value, "memory");
            return (Criteria) this;
        }

        public Criteria andMemoryIn(List<Integer> values) {
            addCriterion("memory in", values, "memory");
            return (Criteria) this;
        }

        public Criteria andMemoryNotIn(List<Integer> values) {
            addCriterion("memory not in", values, "memory");
            return (Criteria) this;
        }

        public Criteria andMemoryBetween(Integer value1, Integer value2) {
            addCriterion("memory between", value1, value2, "memory");
            return (Criteria) this;
        }

        public Criteria andMemoryNotBetween(Integer value1, Integer value2) {
            addCriterion("memory not between", value1, value2, "memory");
            return (Criteria) this;
        }

        public Criteria andDiskIsNull() {
            addCriterion("disk is null");
            return (Criteria) this;
        }

        public Criteria andDiskIsNotNull() {
            addCriterion("disk is not null");
            return (Criteria) this;
        }

        public Criteria andDiskEqualTo(Integer value) {
            addCriterion("disk =", value, "disk");
            return (Criteria) this;
        }

        public Criteria andDiskNotEqualTo(Integer value) {
            addCriterion("disk <>", value, "disk");
            return (Criteria) this;
        }

        public Criteria andDiskGreaterThan(Integer value) {
            addCriterion("disk >", value, "disk");
            return (Criteria) this;
        }

        public Criteria andDiskGreaterThanOrEqualTo(Integer value) {
            addCriterion("disk >=", value, "disk");
            return (Criteria) this;
        }

        public Criteria andDiskLessThan(Integer value) {
            addCriterion("disk <", value, "disk");
            return (Criteria) this;
        }

        public Criteria andDiskLessThanOrEqualTo(Integer value) {
            addCriterion("disk <=", value, "disk");
            return (Criteria) this;
        }

        public Criteria andDiskIn(List<Integer> values) {
            addCriterion("disk in", values, "disk");
            return (Criteria) this;
        }

        public Criteria andDiskNotIn(List<Integer> values) {
            addCriterion("disk not in", values, "disk");
            return (Criteria) this;
        }

        public Criteria andDiskBetween(Integer value1, Integer value2) {
            addCriterion("disk between", value1, value2, "disk");
            return (Criteria) this;
        }

        public Criteria andDiskNotBetween(Integer value1, Integer value2) {
            addCriterion("disk not between", value1, value2, "disk");
            return (Criteria) this;
        }

        public Criteria andInstanceIsNull() {
            addCriterion("instance is null");
            return (Criteria) this;
        }

        public Criteria andInstanceIsNotNull() {
            addCriterion("instance is not null");
            return (Criteria) this;
        }

        public Criteria andInstanceEqualTo(Integer value) {
            addCriterion("instance =", value, "instance");
            return (Criteria) this;
        }

        public Criteria andInstanceNotEqualTo(Integer value) {
            addCriterion("instance <>", value, "instance");
            return (Criteria) this;
        }

        public Criteria andInstanceGreaterThan(Integer value) {
            addCriterion("instance >", value, "instance");
            return (Criteria) this;
        }

        public Criteria andInstanceGreaterThanOrEqualTo(Integer value) {
            addCriterion("instance >=", value, "instance");
            return (Criteria) this;
        }

        public Criteria andInstanceLessThan(Integer value) {
            addCriterion("instance <", value, "instance");
            return (Criteria) this;
        }

        public Criteria andInstanceLessThanOrEqualTo(Integer value) {
            addCriterion("instance <=", value, "instance");
            return (Criteria) this;
        }

        public Criteria andInstanceIn(List<Integer> values) {
            addCriterion("instance in", values, "instance");
            return (Criteria) this;
        }

        public Criteria andInstanceNotIn(List<Integer> values) {
            addCriterion("instance not in", values, "instance");
            return (Criteria) this;
        }

        public Criteria andInstanceBetween(Integer value1, Integer value2) {
            addCriterion("instance between", value1, value2, "instance");
            return (Criteria) this;
        }

        public Criteria andInstanceNotBetween(Integer value1, Integer value2) {
            addCriterion("instance not between", value1, value2, "instance");
            return (Criteria) this;
        }

        public Criteria andTemImgIsNull() {
            addCriterion("tem_img is null");
            return (Criteria) this;
        }

        public Criteria andTemImgIsNotNull() {
            addCriterion("tem_img is not null");
            return (Criteria) this;
        }

        public Criteria andTemImgEqualTo(String value) {
            addCriterion("tem_img =", value, "temImg");
            return (Criteria) this;
        }

        public Criteria andTemImgNotEqualTo(String value) {
            addCriterion("tem_img <>", value, "temImg");
            return (Criteria) this;
        }

        public Criteria andTemImgGreaterThan(String value) {
            addCriterion("tem_img >", value, "temImg");
            return (Criteria) this;
        }

        public Criteria andTemImgGreaterThanOrEqualTo(String value) {
            addCriterion("tem_img >=", value, "temImg");
            return (Criteria) this;
        }

        public Criteria andTemImgLessThan(String value) {
            addCriterion("tem_img <", value, "temImg");
            return (Criteria) this;
        }

        public Criteria andTemImgLessThanOrEqualTo(String value) {
            addCriterion("tem_img <=", value, "temImg");
            return (Criteria) this;
        }

        public Criteria andTemImgLike(String value) {
            addCriterion("tem_img like", value, "temImg");
            return (Criteria) this;
        }

        public Criteria andTemImgNotLike(String value) {
            addCriterion("tem_img not like", value, "temImg");
            return (Criteria) this;
        }

        public Criteria andTemImgIn(List<String> values) {
            addCriterion("tem_img in", values, "temImg");
            return (Criteria) this;
        }

        public Criteria andTemImgNotIn(List<String> values) {
            addCriterion("tem_img not in", values, "temImg");
            return (Criteria) this;
        }

        public Criteria andTemImgBetween(String value1, String value2) {
            addCriterion("tem_img between", value1, value2, "temImg");
            return (Criteria) this;
        }

        public Criteria andTemImgNotBetween(String value1, String value2) {
            addCriterion("tem_img not between", value1, value2, "temImg");
            return (Criteria) this;
        }

        public Criteria andTemTypeIsNull() {
            addCriterion("tem_type is null");
            return (Criteria) this;
        }

        public Criteria andTemTypeIsNotNull() {
            addCriterion("tem_type is not null");
            return (Criteria) this;
        }

        public Criteria andTemTypeEqualTo(Integer value) {
            addCriterion("tem_type =", value, "temType");
            return (Criteria) this;
        }

        public Criteria andTemTypeNotEqualTo(Integer value) {
            addCriterion("tem_type <>", value, "temType");
            return (Criteria) this;
        }

        public Criteria andTemTypeGreaterThan(Integer value) {
            addCriterion("tem_type >", value, "temType");
            return (Criteria) this;
        }

        public Criteria andTemTypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("tem_type >=", value, "temType");
            return (Criteria) this;
        }

        public Criteria andTemTypeLessThan(Integer value) {
            addCriterion("tem_type <", value, "temType");
            return (Criteria) this;
        }

        public Criteria andTemTypeLessThanOrEqualTo(Integer value) {
            addCriterion("tem_type <=", value, "temType");
            return (Criteria) this;
        }

        public Criteria andTemTypeIn(List<Integer> values) {
            addCriterion("tem_type in", values, "temType");
            return (Criteria) this;
        }

        public Criteria andTemTypeNotIn(List<Integer> values) {
            addCriterion("tem_type not in", values, "temType");
            return (Criteria) this;
        }

        public Criteria andTemTypeBetween(Integer value1, Integer value2) {
            addCriterion("tem_type between", value1, value2, "temType");
            return (Criteria) this;
        }

        public Criteria andTemTypeNotBetween(Integer value1, Integer value2) {
            addCriterion("tem_type not between", value1, value2, "temType");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }

        public Criteria andTemNameLikeInsensitive(String value) {
            addCriterion("upper(tem_name) like", value.toUpperCase(), "temName");
            return this;
        }

        public Criteria andDomainLikeInsensitive(String value) {
            addCriterion("upper(domain) like", value.toUpperCase(), "domain");
            return this;
        }

        public Criteria andTemImgLikeInsensitive(String value) {
            addCriterion("upper(tem_img) like", value.toUpperCase(), "temImg");
            return this;
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}